package com.ssy.lingxi.platform.template.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.api.hystrix.inner.CategoryWebInnerHystrix;
import com.ssy.lingxi.platform.template.api.hystrix.inner.MemberPurchaseWebInnerHystrix;
import com.ssy.lingxi.platform.template.api.model.dto.inner.CategorySortDTO;
import com.ssy.lingxi.platform.template.api.model.dto.inner.MemberPurchaseInnerDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

/**
 * 会员采购门户-内部接口
 * @author : lqa
 * @date : 14:19 25/03/2022
 */
@FeignClient(value = "platform-template-service", fallback = MemberPurchaseWebInnerHystrix.class)
public interface MemberPurchaseWebControllerFeign {
    /**
     * 根据会员信息判断是否创建采购门户
     *
     * @param dto 请求参数
     * @return boolean
     */
    @PostMapping("/template/web/memberPurchaseWeb/inner/exitMemberPurchase")
    Wrapper<Boolean> exitMemberPurchase(@RequestBody @Valid MemberPurchaseInnerDTO dto);
}
